<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QIap: drmfile.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>drmfile.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef DRMFILE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define DRMFILE_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;QObject&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="keyword">class </span><a class="code" href="class_d_r_m_file_private.html" title="Content Access Framework (CAF) wrapper implementation.">DRMFilePrivate</a>;
<a name="l00015"></a>00015 
<a name="l00026"></a><a class="code" href="class_d_r_m_file.html">00026</a> <span class="keyword">class </span><a class="code" href="class_d_r_m_file.html" title="Utility API intended to demonstrate and facilitate access to DRM protected content.">DRMFile</a> : <span class="keyword">public</span> QObject
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028     Q_OBJECT
<a name="l00029"></a>00029     Q_DECLARE_PRIVATE(<a class="code" href="class_d_r_m_file.html" title="Utility API intended to demonstrate and facilitate access to DRM protected content.">DRMFile</a>)
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">public</span>:
<a name="l00037"></a>00037     <span class="keyword">explicit</span> <a class="code" href="class_d_r_m_file.html#a53dc1c86f77c9f37b8f7f2a1305fd682" title="Constructor.">DRMFile</a>(QObject *parent = 0);
<a name="l00038"></a>00038 
<a name="l00043"></a>00043     <span class="keyword">virtual</span> <a class="code" href="class_d_r_m_file.html#a5651027bc490a63de2b09ec31c8eb7c4" title="Destructor.">~DRMFile</a>();
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">public</span>:
<a name="l00046"></a>00046 
<a name="l00057"></a>00057     <span class="keywordtype">int</span> <a class="code" href="class_d_r_m_file.html#a86497f25a0b6a500a4188bbfc56d566a" title="Read only open method for the specified file.">open</a>(<span class="keyword">const</span> QString &amp; name);
<a name="l00058"></a>00058 
<a name="l00068"></a>00068     <span class="keywordtype">int</span> <a class="code" href="class_d_r_m_file.html#a9787a72211feb206203384e835610e03" title="Allocates memory buffer and reads the whole file content into that. Allocated buffer is returned to c...">read</a>(uchar*&amp; data);
<a name="l00069"></a>00069 
<a name="l00074"></a>00074     <span class="keywordtype">void</span> <a class="code" href="class_d_r_m_file.html#ace3b5972cf6e621c9e7b7ce9366037e1" title="Close the file.">close</a>();
<a name="l00075"></a>00075 
<a name="l00080"></a>00080     <span class="keywordtype">int</span> <a class="code" href="class_d_r_m_file.html#a2cd5c61d03c886592c10935840c87a9e" title="Returns a 32b value size of the amount of available (uncompressed) data.">size</a>();
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="preprocessor">#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00088"></a>00088     qint64 size64();
<a name="l00089"></a>00089 <span class="preprocessor">#endif</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
<a name="l00097"></a>00097     <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_d_r_m_file.html#af1007998fe521bb33ce458f56aff0c27" title="Returns true if the error code returned by the *open* method is a DRM specific error.">isDRMError</a>(<span class="keywordtype">int</span> error);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="keyword">protected</span>:
<a name="l00103"></a><a class="code" href="class_d_r_m_file.html#a4741a5b903d47f2014b8079f5ad1c701">00103</a>     <a class="code" href="class_d_r_m_file_private.html" title="Content Access Framework (CAF) wrapper implementation.">DRMFilePrivate</a>* <span class="keyword">const</span> <a class="code" href="class_d_r_m_file.html#a4741a5b903d47f2014b8079f5ad1c701">d_ptr</a>;
<a name="l00104"></a>00104 };
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#endif // DRMFILE_H</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Thu Apr 26 2012 12:42:07 for QIap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
